#include "card.h"

Card::Card()
{    
}

Card::Card(  CardPoint point, SUIT suit)
{
    setSuit(suit);
    setPoint(point);
}

void Card::setPoint(const CardPoint &point)
{
    C_Point = point;
}

CardPoint Card::getPoint()
{
    return  C_Point;
}

void Card::setSuit(const SUIT &suit)
{
    C_Suit = suit;
}

SUIT Card::getSuit()
{
    return  C_Suit;
}


bool operator==(const Card &left, const Card&right)
{
    return (left.C_Point == right.C_Point&&left.C_Suit == right.C_Suit);
}

uint qHash(const Card &card)
{
    return  card.C_Point*100+card.C_Suit;
}
